from app.utils.common import get_time, get_timestamp


def create_oa_order_number():
    """
    创建OA单号
    """
    date = get_time(time_type=10, day=0, add_time_unit="days")
    current_timestamp = get_timestamp()
    oa_serial_number = 'SJSQ' + '-' + '0007' + '-' + str(date)[2:] + '-' + str(current_timestamp)[6:]
    return oa_serial_number


if __name__ == '__main__':
    print(create_oa_order_number())
